import {
	createPinia
} from 'pinia'
const pinia = createPinia()
import App from './App'
import uviewPlus from 'uview-plus'
import {
	createSSRApp
} from 'vue'
import iceMessage from '@/components/onceMore/iceMessage.vue'
import iceDialog from '@/components/onceMore/iceDialog.vue'
import { elementScale } from './utils/iceDirective'
export function createApp() {
	const app = createSSRApp(App)
	app.use(uviewPlus)
	app.use(pinia)
	app.provide('pinia', pinia); // 提供 Pinia 实例 
	app.directive('elementScale', elementScale);
	app.component('iceMessage', iceMessage);
	app.component('iceDialog', iceDialog);
	return {
		app
	}
}